Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the get_*_tag glue function to return the right type of integer #84

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

joom
Copy link
Member

@joom joom commented Dec 14, 2023

It should return word size unsigned integer instead of unsigned int.

This is because, on a 64-bit machine, a Coq inductive type can have 2^63 unboxed constructors and 2^8 boxed constructors at the same time. The return type for the get_*_tag function should be able to hold (2^63 + 2^8) different integers.

@joom joom merged commit e314582 into master Dec 22, 2023
1 check passed
@joom joom deleted the joom/glue-tag-fix branch December 22, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant